<?php /* Smarty version Smarty-3.1.13, created on 2013-07-19 07:01:52
         compiled from "C:\xampp\htdocs\new3\application\view\pessoa\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:923251e8c82d6932f5-65902940%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0d5a4957f29c667da4e22a7486b9e0a0520269df' => 
    array (
      0 => 'C:\\xampp\\htdocs\\new3\\application\\view\\pessoa\\index.tpl',
      1 => 1374210108,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '923251e8c82d6932f5-65902940',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51e8c82d7a2041_63221318',
  'variables' => 
  array (
    'header' => 0,
    'lista' => 0,
    'row' => 0,
    'msgDel' => 0,
    'footer' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51e8c82d7a2041_63221318')) {function content_51e8c82d7a2041_63221318($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['header']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div align="right">
	<a href="<?php echo @constant('PESSOA');?>
/insert"><button>Nova Pessoa</button></a>
</div> 
<br />   
<table>
<tr>
    <th>Código</th>
    <th>Nome</th>
    <th>E-mail</th>
    <th>Ações</th>
</tr>  
<?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['lista']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
<tr>
    <td><?php echo $_smarty_tpl->tpl_vars['row']->value['cod_pessoa'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['row']->value['nome_pessoa'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['row']->value['email_pessoa'];?>
</td>
    <td>
    	<a href="<?php echo @constant('PESSOA');?>
/edit/<?php echo $_smarty_tpl->tpl_vars['row']->value['cod_pessoa'];?>
">Edit</a> |
        <a href="<?php echo @constant('PESSOA');?>
/del/<?php echo $_smarty_tpl->tpl_vars['row']->value['cod_pessoa'];?>
">Delete</a>
    </td>
</tr>      
<?php } ?>
</table>
<div align="center">
	<?php echo $_smarty_tpl->tpl_vars['msgDel']->value;?>

</div>
<?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['footer']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>